package course.myfile;

import java.io.File;
import java.io.IOException;

public class MyFile1 {
    public static void main(String[] args) throws IOException {

        File file = new File("Day11\\src\\course\\testfile\\test1\\test2");
        boolean flag = file.mkdirs();
        System.out.println(flag);
        //        method2();
//        method1();



    }

    private static void method2() {
        File file = new File("Day11\\src\\course\\testfile");
        boolean flag = file.mkdir();
        System.out.println(flag);
    }

    private static void method1() throws IOException {
        File file1 = new File("Day11\\src\\course\\a.txt");
        boolean flag1 = file1.createNewFile();
        System.out.println(flag1);
    }
}
